﻿@using ExampleWebApplication.Controllers
@using ExampleWebApplication.Models
@using ExampleWebApplication.Properties
<h2>
    @NHibernateStrings.Example14d6: Any filter on Region will cause { string.Empty, null } aliases to be sent to database within queries.
</h2>
<h4>
    { string.Empty, null } => Aliases that will be treated as null values and will be sent to the database within queries.
</h4>
@(Html.Telerik().Grid<EmployeeModel>().Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(x => x.EmployeeID).Width(80);
            columns.Bound(x => x.EmployeeName);
            columns.Bound(x => x.Region);
        })
        .EnableCustomBinding(true).Sortable().Filterable().Groupable().Pageable(x => x.PageSize(15))
        .DataBinding(dataBinding => dataBinding.Ajax().Select<NHibernateController>(ctr => ctr.FilteringWithNullSubstitutesNHibernateData(null))))